import java.io.IOException;
import java.util.ArrayList;
import java.util.Dictionary;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.logging.Level;
import java.util.logging.Logger;

import net.minecraft.server.*;

public class Player {
	protected dv player;
	public Player(dv other)
	{
		this.player = other;
	}
	public Player(Object other)
	{
		if(!(other instanceof dv))
			throw new Error("Object was not of the proper class");
		this.player = ((dv)other);
	}
	public Player(Player other)
	{
		this.player = other.player;
	}

	public dv playerInstance()
	{
		return player;
	}

	public String name()
	{
		return player.ap;
	}
	public double x()
	{
		return player.k;
	}
	public double y()
	{
		return player.l;
	}
	public double z()
	{
		return player.m;
	}
	public String ipAddress()
	{
		return getControllerInstance().b.b().toString().split(":")[0];
	}
	public void teleport(double x, double y, double z, float f1, float f2)
	{
		getControllerInstance().a(x, y, z, f1, f2);
	}
	public void sendMessage(String str)
	{
		getControllerInstance().b(new az(str));
	}
	public ht getControllerInstance()
	{
		return player.a;
	}
}